package cn.wellwan.decorate;

/**
 * creator: maokai
 * on: 2018/3/27
 * description:
 */
public class Whip extends CondimentDecorator  {

    private Beverage beverage;

    public Whip (Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription () {
        return beverage.getDescription()+ ", Whip";
    }

    @Override
    public double cost () {
        return 0.50 + beverage.cost();
    }
}
